package com.gengealogy.net.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.gengealogy.net.dao.ReportDao;
import com.gengealogy.net.po.Report;
import com.gengealogy.net.service.ReportService;
import com.mysql.jdbc.ReplicationDriver;



@Service("reportService")
@Transactional
public class ReportServiceImpl implements ReportService{

	// 注入UserDao
		@Autowired
		private ReportDao reportDao;
		@Override
		public List<Report> getReport(int user_id) {
			// TODO Auto-generated method stub
			return reportDao.getReport(user_id);
		}

		@Override
		public List<Report> findReport() {
			// TODO Auto-generated method stub
			return reportDao.findReport();
		}

		@Override
		public int addReport(Report report) {
			// TODO Auto-generated method stub
			return reportDao.addReport(report);
		}

		@Override
		public int updateReport(int report_state,int report_id) {
			// TODO Auto-generated method stub
			return reportDao.updateReport(report_state,report_id);
		}

		@Override
		public int deleteReport(int report_id) {
			// TODO Auto-generated method stub
			return reportDao.deleteReport(report_id);
		}


}
